//
//  System_ModelHandler.swift
//  mall-ios
//
//  Created by Meak Tsui on 2018/11/28.
//  Copyright © 2018 Meak Tsui. All rights reserved.
//

import Foundation
import UIKit
import MTHybrid

extension Api {
    static let Model = Api("model")
}

class System_ModelHandler: MTEventHandler {
    var ns: Ns {
        return .System
    }
    
    var action: Api {
        return .Model
    }
    
    func handler(_ msg: MTHybridMsg) {
        let model = UIDevice.current.modelName
        msg.callbackClosure?(model)
    }
    
    
}
